]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspaceThumbnails: Don't animate thumbnail additions while hidden
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 16 Feb 2021 21:33:28 +0000 (22:33 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 19 Feb 2021 00:13:05 +0000 (01:13 +0100)
This is not just an obvious mini-optimization, it also ensures that we
don't start showing the minimap with an ongoing thumbnail transition.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3739

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1696>

js/ui/workspaceThumbnail.js

index e84764842abffb7e8b1b7b9f486706b7984f7637..b06e60209af8d2dc549fbf28405f66c2fb467739 100644 (file)
@@ -1040,7 +1040,7 @@ var ThumbnailsBox = GObject.registerClass({
             this._thumbnails.push(thumbnail);
             this.add_actor(thumbnail);
 
-            if (start > 0 && this._spliceIndex == -1) {
+            if (this._shouldShow && start > 0 && this._spliceIndex === -1) {
                 // not the initial fill, and not splicing via DND
                 thumbnail.state = ThumbnailState.NEW;
                 thumbnail.slide_position = 1; // start slid out